from django.conf.urls import url

from request_response import views

urlpatterns = [
    url(r'^weather/(?P<place>[a-z]+)/(?P<year>\d{4})/$',views.weather),
    url(r'^get_form_param/$',views.get_form_param),
    url(r'^get_json_param/$',views.get_json_param),
    url(r'^get_question_param/$',views.get_question_param),
    url(r'^get_head_param/$',views.get_head_param),
    # url 增加　name　属性，总的url增加　namespace 属性
    url(r'^$',views.first_page,name='index'),
    url(r'^json_response/$',views.json_response),
    url(r'^redirect_test/$',views.redirect_test)
]
